package com.jmz.qyyl.domain;

import java.io.Serializable;
import java.util.Objects;
/**
 * 功能描述: <br>
 * 〈〉
 *
 * @since: 1.0.0
 * @Author:zmy
 * @Date: 2018/3/3 上午12:31
 */
public class URole implements Serializable {
  private Long id;

  private String name;

  private String type;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  //public URole(Long id, String name, String type) {
  //    this.id = id;
  //    this.name = name;
  //    this.type = type;
  //}

  public URole() {
  }

  @Override
  public String toString() {
    return "URole{"
        +
        "id="
        + id
        +
        ", name='" + name
        + '\''
        +
        ", type='"
        + type
        + '\''
        +
        '}';
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    URole uRole = (URole) o;
    return Objects.equals(id, uRole.id)
        &&
        Objects.equals(name, uRole.name)
        &&
        Objects.equals(type, uRole.type);
  }


  @Override
  public int hashCode() {

    return Objects.hash(id, name, type);
  }
}